package ooday04.homework;

public class StaticFinalDemo {
    public static void main(String[] args) {
        System.out.println(Loo.PI);
//        Loo.PI = 3.14;

        System.out.println(Loo.num);//加载.class到方法区->num加载到方法区->去方法区取num值并输出
        System.out.println(Loo.COUNT);//效率高，编译时直接替换为具体的值
    }
}


class Loo {
    public static final double PI = 3.1415926;

    public static int num = 6;
    public static final int COUNT = 6;
}